<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/js/kindeditor-all-min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/zh_CN.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jscolor/jscolor.js"></script>
<link rel="stylesheet" href="__PUBLIC__/css/kindeditor.css" type="text/css" />
<script type="text/javascript">
	<if condition="C('ismobile') neq 1">
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			uploadJson:'{:U("file/editor")}',
			allowFileManager : true,
			fileManagerJson: "{:U('file/manager')}"
		});		
	});	
	</if>
</script>
<div class="container">
	<!-- Docs nav ================================================== -->
	<div class="page-header">
		<h4>{:L('ADD THE ANNOUNCEMENT')}</h4>
	</div>
	<div class="row">
		<div class="span12">
			<include file="Public:alert" />
			<form action="" method="post">
				<table class="table" border="0" cellspacing="1" cellpadding="0">
					<thead>
						<tr>
							<td colspan="2"><input name="submit" class="btn btn-primary" type="submit" value="{:L('SAVE')}"/> &nbsp;<input class="btn" type="button" onclick="javascript:history.go(-1)" value="{:L('RETURN')}"/></td>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="2"><input class="btn btn-primary" name="submit" type="submit" value="{:L('SAVE')}"/> &nbsp; <input class="btn btn" type="button" onclick="javascript:history.go(-1)" value="{:L('RETURN')}"/></td>
						</tr>
					</tfoot>
					<tbody>
						<th colspan="2">{:L('BASIC INFORMATION')}</th>
						<tr>
							<td class="tdleft">{:L('HEADLINE')}</td>
							<td><input type="text" name="title" class="span4" value=""/>{:L('100 CHARACTERS')}</td>
						</tr>
						<tr>
							<td class="tdleft">{:L('HEADLINE COLOR')}</td>
							<td><input class="color" value="#000" name="color"/></td>
						</tr>
						<tr>
							<td class="tdleft">{:L('WHETHER ISSUED')}</td>
							<td><input type="radio" value="1" checked name="status"/> {:L('IS')} &nbsp;
								<input type="radio" value="2" name="status"/> {:L('ISNOT')}</td>
						</tr>
						<tr>
							<td class="tdleft">{:L('WHETHER IN THE LOGIN SCREEN DISPLAY')}</td>
							<td><input type="radio" value="1" checked name="isshow"/> {:L('IS')} &nbsp;
								<input type="radio" value="0" name="isshow"/> {:L('ISNOT')}</td>
						</tr>
						<tr>
							<td class="tdleft">{:L('INFORM THE DEPARTMENT')}</td>
							<td><input type="checkbox" id="check_all" checked="checked"> &nbsp; {:L('CHECK ALL')} &nbsp;  &nbsp; <volist name="department_list" id="vo"><input name="announce_department[]" class="department" type="checkbox" value="{$vo['department_id']}" checked="checked"/> &nbsp; {$vo['name']} &nbsp;  &nbsp; </volist></td>
						</tr>
						<tr>
							<td class="tdleft">{:L('CONTENT')}</td>
							<td>
								<textarea name="content" id="content" style="width: 1000px; height: 350px;"></textarea>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	<if condition="C('ismobile') eq 1">
		width=$('.container').width() * 0.8;
		$("#content").css({
			width : width
		});
	</if>
	$("#check_all").click(function(){
		var check_all = $(this).prop('checked');
		$(".department").prop('checked', check_all);
	});
</script>
<include file="Public:footer" />